using System;
using System.Collections.Generic;
using DapperExtensions.Mapper;
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Data
{
	public class DevUserpositiondataTMapper : ClassMapper<DevUserpositiondataT>
	{
		public DevUserpositiondataTMapper()
		{
			Table("dev_userpositiondata_t");
			Map(f => f.Id).Column("id").Key(KeyType.Assigned);
			Map(f => f.UserId).Column("user_id");
			Map(f => f.JobId).Column("job_id");
			Map(f => f.LocationTime).Column("location_time");
			Map(f => f.Lon).Column("lon");
			Map(f => f.Lat).Column("lat");
			Map(f => f.Speed).Column("speed");
			Map(f => f.CellId).Column("cell_id");
			Map(f => f.AreaCode).Column("area_code");
			Map(f => f.IsAbnormal).Column("is_abnormal");
			Map(f => f.GmtCreated).Column("gmt_created");
			Map(f => f.GmtModified).Column("gmt_modified");
			Map(f => f.StateInfo).Column("state_info");
			Map(f => f.IsUse).Column("is_use");
			Map(f => f.Version).Column("version");
		}
	}
}
